# Makefile
num=1

process_$(num) : process_$(num).o
	cc -o process_$(num) process_$(num).o
process_$(num).o : process_$(num).c
	cc -c process_$(num).c
pthread_1 : pthread_1.o
	cc -lpthread -o pthread_1 pthread_1.o
pthread_1.o : pthread_1.c
	cc -c pthread_1.c
pthread_2 : pthread_2.o
	cc -lpthread -o pthread_2 pthread_2.o
pthread_2.o : pthread_2.c
	cc -c pthread_2.c
pthread_3 : pthread_3.o
	cc -lpthread -o pthread_3 pthread_3.o
pthread_3.o : pthread_3.c
	cc -c pthread_3.c

clean :
	rm process_[1-4] process_[1-4].o pthread_[1-3] pthread_[1-3].o
